import request from '@/request'


export function getCommentsByBlogId(id) {
  return request({
    url: `/comment/getCommentByBlogId/${id}`,
    method: 'get'
  })
}

export function addComment(comment) {
  return request({
    url: '/comment/addComment',
    method: 'post',
    data: comment
  })
}

export function getMessage() {
  return request({
    url: `/message/getMessage`,
    method: 'get'
  })
}

export function addMessage(message) {
  return request({
    url: '/message/addMessage',
    method: 'post',
    data: message
  })
}

